<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0">
		<link rel="stylesheet" href="{:ADDON_PUBLIC_PATH}/css/weuix.min.css" />
		<link rel="stylesheet" href="{:ADDON_PUBLIC_PATH}/css/register.css" />
		<link rel="stylesheet" type="text/css" href="{:ADDON_PUBLIC_PATH}/css/iconfont.css"/>
		<link rel="stylesheet" href="{:ADDON_PUBLIC_PATH}/css/person_edit.css" />
		<link rel="stylesheet" type="text/css" href="{:ADDON_PUBLIC_PATH}/css/zoomify.min.css"/>
		<title>我的电子照</title>
		<script type="text/javascript">
		//静态变量
		 function onBridgeReady() { 
	    	    WeixinJSBridge.call('hideOptionMenu'); 
	    	} 
	    	 
	    	if (typeof WeixinJSBridge == "undefined") { 
	    	    if (document.addEventListener) { 
	    	        document.addEventListener('WeixinJSBridgeReady', onBridgeReady, false); 
	    	    } else if (document.attachEvent) { 
	    	        document.attachEvent('WeixinJSBridgeReady', onBridgeReady); 
	    	        document.attachEvent('onWeixinJSBridgeReady', onBridgeReady); 
	    	    } 
	    	} else { 
	    	    onBridgeReady(); 
	    	}
	</script>
	</head>
	<body>
		
		<div class="media">
   <div class="media-body">
   <div  align="center">
   <if condition="I('pay_type') eq 1" >
   <img src="{:ADDON_PUBLIC_PATH}/images/wechat.jpg" class="img-thumbnail" width="200">
	<p>微信支付</p>
   <else />
   	<img src="{:ADDON_PUBLIC_PATH}/images/zhifu.jpg" class="img-thumbnail" width="200">
    <h3>支付宝帐号:15217463754 <br />  用户名：李炎田</h3>
    <p>请用支付宝：转到此帐号：备注好姓名</p>
   </if>
   </div>
   <hr />
   <p class="title" style="color:#fe4040;" align="center">提交成功，如转帐成功请等待工作人员确认</p>
   </div>
</div>
        
        <div class="weui-footer" style="margin-top: 60px;">
		  <p class="weui-footer__links">
		    <a href="http://h.eqxiu.com/s/04twlh4V" class="weui-footer__link">微生活工作室</a>|  <a href="{:U('infoReview')}" class="weui-footer__link">意见反馈</a>
		  </p>
		  <a  href="{:U('term_text_cn')}" class="weui-footer__text" style="border-radius: ;">Copyright © 20016-2017</a>
		</div>
	</body>
	<script src="{:ADDON_PUBLIC_PATH}/js/jquery-3.2.1.min.js"></script>
	<script src="{:ADDON_PUBLIC_PATH}/js/zepto.min.js"></script>
	<script src="{:ADDON_PUBLIC_PATH}/js/zoomify.min.js"></script>
	<script type="text/javascript">
		
		// $('#touxiang').zoomify();
		$(document).on('click', '#btn', function() {
			//复选框
			var electron_id=""; 
			$('input:checkbox').each(function() {
		        if ($(this).prop('checked') ==true) {
		        	electron_id+=$(this).val()+",";      
		        }
			});
		    //alert(str);
		   //单选框
		   var size = $('#size').val();
		   var remark = $('#remark').val();
		   var url = $('form').attr('action');
		   var photo_id = $('#uid').val();
		   $.ajax({
			    url:url,
			    type:"post",
			    dataType:"json",
			    data:{"size":size,"photo_id":photo_id,"electron_id":electron_id,"remark":remark},
			    success:function(data){
			     	$.hideLoading();
		            console.log(data);
		            if (data.status == 1) {
		                 $.toast(data.info); 
		                 setTimeout(function(){
		                 	//  history.pushState("","","{:U('booksDetail',array('bid'=>I('get.bid')))}");  
		                 	location.href = "{:U('photo_print')}";
		                 	// window.history.go(-1);
		                 },1500);
		            } else {
		                 $.toast(data.info, "forbidden");
		            }
			    },
			    error:function(){
			      	$.toast("错误", "forbidden");
			    }
		   });
		})
	</script>
</html>